import { defineStore } from 'pinia'
import { sendEmailService } from '@/api/utilsAPI'

export const useUtilsStore = defineStore(
  'utils',
  () => {
    const submitEmail = async (email) => {
      console.log('submitEmail', email)
      await sendEmailService(email)
    }
    return { submitEmail }
  },
  {
    persist: true
  }
)
